package com.huidao.dao;

import java.sql.Connection;
import java.util.List;

import com.huidao.entity.Goods;

public interface GoodsDao {
public List<Goods> getGoodsBySeller(int startnum,int pageSize,long userId);
	
	public int getTotalCountBySeller(long userId);
	
	public boolean addGoods(Goods goods);
	
	public boolean delGoods(long goodsId);
	
	public boolean updateGoods(Goods goods);
	
	public boolean shelvesGoods(long goodsId,int goodsShelves);
	
	public List<Goods> getGoods(int startnum,int pageSize,String orderColumn);
	
	public int getTotalCount();
	
	public boolean updateAccount(Connection conn,long goodsId,int num);
}
